﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace HZYProject.Domain
{
    /// <summary>
    /// 角色表
    /// </summary>
    public class Role
    {
        /// <summary>
        /// 角色编号
        /// </summary>
        [Key]
        public Guid RoleID { get; set; }


        /// <summary>
        /// 角色名
        /// </summary>
        [StringLength(50)]
        public string Name { get; set; }

        /// <summary>
        /// Key值
        /// </summary>
        [StringLength(50)]
        public string Keys { get; set; }


        public virtual ICollection<User> Users { get; set; }
        public virtual ICollection<Module> Modules { get; set; }
    }
}
